/* ==========================================================================
   DAUROH GURU TABBED LAYOUT & ATTENDANCE STYLES
   ========================================================================== */
.dauroh-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 3px solid var(--primary-light);
    padding-left: 10px;
    margin-bottom: 25px;
}

.dauroh-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(140, 98, 57, 0.15);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    bottom: -3px;
    z-index: 1;
}

.dauroh-tab:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
}

.dauroh-tab.active {
    background-color: var(--primary-light);
    color: var(--bg-primary);
    border-color: var(--primary-light);
    z-index: 2;
    box-shadow: 0 -4px 12px rgba(140, 98, 57, 0.1);
}

.dauroh-tab.active i {
    color: var(--secondary-light);
}

.dauroh-pane {
    display: none;
}

.dauroh-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Meeting Bar 1 - 10 */
.dauroh-meeting-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 98, 57, 0.2) transparent;
}

.dauroh-meeting-tabs::-webkit-scrollbar {
    height: 4px;
}

.dauroh-meeting-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(140, 98, 57, 0.2);
    border-radius: 4px;
}

.meeting-btn {
    padding: 8px 16px;
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.2);
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.meeting-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.meeting-btn.active {
    background-color: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(140, 98, 57, 0.15);
}

/* Three Columns Grid side-by-side */
.dauroh-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.dauroh-stat-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.12);
    border-radius: var(--border-radius-md);
    padding: 20px;
    box-shadow: var(--box-shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.dauroh-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

/* Date picker below meeting navigation */
.dauroh-date-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 10px 16px;
    background-color: rgba(140, 98, 57, 0.04);
    border-radius: var(--border-radius-sm);
    border: 1px dashed rgba(140, 98, 57, 0.15);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.dauroh-date-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.85rem;
}

/* Filterable stats cards styling */
.dauroh-stat-card.filterable {
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.dauroh-stat-card.filterable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition);
}

.dauroh-stat-card.filterable.active {
    background-color: rgba(140, 98, 57, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.15);
    transform: translateY(-2px);
}

.dauroh-stat-card.filterable.active::after {
    background-color: var(--primary);
}

/* Specific colors for active filter states */
.dauroh-stat-card.filterable.dauroh-stat-hadir.active {
    background-color: rgba(46, 125, 50, 0.05);
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.dauroh-stat-card.filterable.dauroh-stat-hadir.active::after {
    background-color: #2e7d32;
}

.dauroh-stat-card.filterable.dauroh-stat-tidak-hadir.active {
    background-color: rgba(198, 40, 40, 0.05);
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
.dauroh-stat-card.filterable.dauroh-stat-tidak-hadir.active::after {
    background-color: #c62828;
}

/* Search wrapper styling */
.dauroh-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.dauroh-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.2);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.dauroh-search-input:focus, .dauroh-search-input:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

.dauroh-search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Summary Badge status styling */
.dauroh-badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}
.dauroh-badge-h {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}
.dauroh-badge-th {
    background-color: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}
.dauroh-badge-i {
    background-color: rgba(239, 108, 0, 0.1);
    color: #ef6c00;
    border: 1px solid rgba(239, 108, 0, 0.2);
}
.dauroh-badge-s {
    background-color: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border: 1px solid rgba(21, 101, 192, 0.2);
}
.dauroh-badge-empty {
    color: var(--text-muted);
    font-weight: 500;
}

.dauroh-stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dauroh-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.dauroh-stat-percent .dauroh-stat-value {
    color: var(--primary);
}

.dauroh-stat-hadir .dauroh-stat-value {
    color: #2e7d32;
}

.dauroh-stat-tidak-hadir .dauroh-stat-value {
    color: #c62828;
}

/* Attendance Table styling for Dauroh */
.dauroh-table-wrapper {
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.1);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--box-shadow-soft);
    margin-top: 25px;
}

.dauroh-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(140, 98, 57, 0.08);
}

.dauroh-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-main);
}

.dauroh-table th {
    background-color: var(--bg-secondary);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 10px 8px;
    border-bottom: 2px solid rgba(140, 98, 57, 0.12);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dauroh-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(140, 98, 57, 0.06);
    vertical-align: middle;
    font-size: 0.82rem;
}

.dauroh-table tbody tr:hover {
    background-color: rgba(140, 98, 57, 0.03);
}

.dauroh-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status select dropdown formatting */
.dauroh-status-select {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 130px;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C1E11' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 20px;
}

.status-select-hadir {
    background-color: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border-color: rgba(76, 175, 80, 0.2);
}
.status-select-hadir:hover, .status-select-hadir:focus {
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.status-select-tidak-hadir {
    background-color: rgba(244, 67, 54, 0.12);
    color: #c62828;
    border-color: rgba(244, 67, 54, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-tidak-hadir:hover, .status-select-tidak-hadir:focus {
    background-color: rgba(244, 67, 54, 0.2);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

.status-select-izin {
    background-color: rgba(255, 152, 0, 0.12);
    color: #ef6c00;
    border-color: rgba(255, 152, 0, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ef6c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-izin:hover, .status-select-izin:focus {
    background-color: rgba(255, 152, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.status-select-sakit {
    background-color: rgba(33, 150, 243, 0.12);
    color: #1565c0;
    border-color: rgba(33, 150, 243, 0.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}
.status-select-sakit:hover, .status-select-sakit:focus {
    background-color: rgba(33, 150, 243, 0.2);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

/* Responsive grid for stats */
@media (max-width: 768px) {
    .dauroh-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Custom Controls Bar for Dauroh Guru T.A */
.dauroh-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: rgba(140, 98, 57, 0.04);
    border: 1px solid rgba(140, 98, 57, 0.08);
    border-radius: var(--border-radius-md);
    padding: 14px 24px;
    margin-top: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.dauroh-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.dauroh-instruction .info-icon {
    color: var(--primary);
    font-size: 1rem;
}

.dauroh-ta-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dauroh-ta-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dauroh-ta-select {
    padding: 8px 36px 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--bg-white);
    border: 1px solid rgba(140, 98, 57, 0.2);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C6239' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 150px;
}

.dauroh-ta-select:hover, .dauroh-ta-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.1);
}

@media (max-width: 768px) {
    .dauroh-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 16px;
    }
    
    .dauroh-ta-selector-wrapper {
        justify-content: space-between;
    }
    
    .dauroh-ta-select {
        flex: 1;
        max-width: 200px;
    }
}

